//class Point {
//
//    private static double a;//横坐标或半径
//
//    private static double b;//纵坐标或角度
//
//    public static Point makePoint_XY(double x, double y) {
//        Point point = new Point();
//        a = x;
//        b = y;
//        return point;
//    }
//
//    public static Point makePoint_RO(double r, double o) {
//        Point point = new Point();
//        a = r;
//        b = o;
//        return point;
//    }
//}

class Point {

    private static double a;//横坐标或半径

    private static double b;//纵坐标或角度

    private Point(double a, double b) {
        a = a;
        b = b;
    }

    public static Point makePoint_XY(double x, double y) {
        Point point = new Point(x, y);
//        a = x;
//        b = y;
        return point;
    }

    public static Point makePoint_RO(double r, double o) {
        Point point = new Point(r, o);
//        a = r;
//        b = o;
        return point;
    }
}


public class Demo7 {
}
